<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>


<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="toApprove">

<xsl:comment>
0 - have just been uploaded
1 - is public
2 - have been denyed authorization
3 - is waiting to be finalized
</xsl:comment>


<table class="nbox" border="0" cellspacing="0" cellpadding="3" width="100%">
<tr height="25px">
<td bgcolor="#f4efdf" class="dotlin" colspan="5"><b>Pictures in attesa di approvazione</b></td></tr>
<tr bgcolor="#f4efdf" class="body">
<td><b>Nickname</b></td>
<td></td>
<td><b>Picture</b></td>
<td align="center" colspan="2"><b>Approva</b></td>
</tr>
<xsl:for-each select="row">
<tr bgcolor="#f4efdf">
<td class="dotlin">
<nobr>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="@uStatus"/>
		<xsl:with-param name="sexid" select="@sexid"/>
		<xsl:with-param name="certified" select="@certified"/>
		<xsl:with-param name="userid" select="@userid"/>
		<xsl:with-param name="nick" select="@nick"/>
		<xsl:with-param name="bold" select="/activity/@loggedUser=@userid"/>
		<xsl:with-param name="buddy" select="0"/>
		<xsl:with-param name="newbie" select="@dayiscr&lt;15 and ( floor( /activity/@loggedStatus div 4) mod 4 or floor( /activity/@loggedStatus div 16) mod 16 or floor( /activity/@loggedStatus div 32) mod 32 )"/>
	</xsl:call-template>
</nobr>
</td>
<td class="dotlin">&#160;</td>
<td width="1%" class="dotlin">

		<xsl:choose>
			<xsl:when test="@thumb">
				<a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" width="100px" src="/imgs/user/thumb/{@thumb}"/></a>
			</xsl:when>
			<xsl:otherwise>
				<a href="/showUserPics.aspx?userGuid={@userid}"><img border="0" width="100px" src="/imgs/user/thumb/{@picname}"/></a>
			</xsl:otherwise>
		</xsl:choose>
		
</td>

		<xsl:choose>
			<xsl:when test="@approved = 3">
				<xsl:choose>
					<xsl:when test="@thumb">
						<td align="center" class="dotlin">Conferma finalizzazione.</td>
					</xsl:when>
					<xsl:otherwise>
						<td align="center" class="dotlin">In attesa di essere finalizzata.</td>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
				<form name="certify{position()}" method="post" action="?userid={@userid}&amp;enum={@enum}&amp;makeItPublic=2">
				<input type="hidden" name="FORM_ID" value="picture"></input>
				<td align="center" class="dotlin">
					<select class="body_10px" size="1" name="WHY">
					<option value="5">Non lo ritrae</option>
					<option value="1">Non visibile, ricaricarla!</option>
					<option value="2">Ci sono minori</option>
					<option value="3">Troppo esplicita</option>
					<option value="4">Altre persone</option>
					<option value="6">Altro</option>
					</select>
				<a href="javascript:document.certify{position()}.submit();"><img border="0" src="/imgs/warning.gif"/></a>
				</td>
				</form>
			</xsl:otherwise>
		</xsl:choose>

		<xsl:choose>
			<xsl:when test="@approved = 3">
				<xsl:choose>
					<xsl:when test="@thumb">
						<td align="center" class="dotlin"><a href="?userid={@userid}&amp;enum={@enum}&amp;makeItPublic=1"><img border="0" src="/imgs/markedyes.gif"/></a></td>
					</xsl:when>
					<xsl:otherwise>
						<td align="center" class="dotlin"><a href="?userid={@userid}&amp;enum={@enum}&amp;finalize=1"><img border="0" src="/imgs/xpgo.gif"/></a></td>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
				<td align="center" class="dotlin"><a href="?userid={@userid}&amp;makeItPublic=1"><img border="0" src="/imgs/markedyes.gif"/></a></td>
			</xsl:otherwise>
		</xsl:choose>


</tr>
</xsl:for-each>
</table>
</xsl:template>

</xsl:stylesheet>